package com.isunland.managesystem.ui;

import android.support.v4.app.Fragment;
import com.isunland.managesystem.entity.CustomerContact;
import com.isunland.managesystem.entity.CustomerNeed;

public class CustomerContactActivity extends SingleFragmentActivity {

  @Override protected Fragment createFragment() {
    int type = getIntent().getIntExtra(CustomerContactFragment.EXTRA_TYPE, 0);
    String customerNeedId = getIntent().getStringExtra(CustomerContactFragment.EXTRA_NEED_ID);
    CustomerContact customerContact = (CustomerContact) getIntent().getSerializableExtra(
        CustomerContactFragment.EXTRA_CUSTOMER_CONTACT);
    CustomerNeed customerNeed = (CustomerNeed) getIntent().getSerializableExtra(
        CustomerContactFragment.EXTRA_CUSTOMER_NEED);
    return CustomerContactFragment.newInstance(customerContact, type, customerNeedId, customerNeed);
  }
}
